<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Carson</title>
    <script>


         function callAndroid(){
         <!--由于对象映射，所以调用test对象等于调用Android映射的对象-->
            test.hello("js调用了android中的hello方法","2345");
         }

             function clickprompt(){
    <!--调用prompt（）-->
    var result=prompt("js://demo?arg1=111&arg2=222");
    alert("demo " + result);
}


    </script>
</head>
<body>
<!--点击按钮则调用callAndroid函数-->
<button type="button" id="button1" onclick="callAndroid()" >点击调android</button>
<button type="button" id="button2" onclick="clickprompt()" >点击调android_2</button>
</body>
</html>